#include <stdio.h>
#include <sys/wait.h> //wait() waitpid()
int main()
{
     printf("wait start ----------\n");
           int ret = wait(NULL);//成功返回0 失败返回-1
           if(ret<0){
                  perror("wait error");
                       return -1;
                          
           }
              printf("wait end ----------\n");
                 return 0;

}

